package algotithm.interview.携程test.test;

/**
 * @author zhouyanxiang
 * @Date 2021-03-2021/3/18-19:43
 */
public class Main {

    public static void main(String[] args) {
        String s1 = "Ali Ba Ba".replaceAll(" ","");
        String s2 = "Xie Cheng".replace(" ","");
        int res = 0;
        for (int i = 0; i < s1.length(); i++) {
            res += (int) s1.charAt(i);
        }
        for (int j = 0; j < s2.length(); j++) {
            res += (int) s2.charAt(j);
        }
        int i = 2 * (int)'i';
        res -= i;
        System.out.println(res);
    }

}
